<!DOCTYPE HTML>
<html>
<head>
<?php
	include("components/helper.php");
	include("components/metadata.php");
?>
<title>40Towers - Profile - Cast Member</title>
<link rel="stylesheet" href="css/global.css" />
<link rel="stylesheet" href="css/profile_castmember.css" />
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<?php
	include("components/analytics.php");
	include("components/database.php");	
	
	$get_id = $_GET["id"];
	$seriesCount = $_GET["seriesCount"];
	$episodeCount = $_GET["episodeCount"];
?>
</head>
<body>

<div id="page">
    <?php
		include("components/header.php");
		include("components/nav.php");
	?>
    
    <div>
    <section class="group">
        <h1>Profile - Actor</h1>
        <article>
            <header>
            	<?php 
					if ($result = $mysqli->query("
											SELECT a.actorName, a.actorSurname, a.dob, a.dod
											FROM Actor AS a
											WHERE a.id=$get_id")) 
					{
						$data = mysqli_fetch_array($result);
						
						$name = $data["actorName"] ." ". $data["actorSurname"];
						$dob = $data["dob"];
						$dod = $data["dod"];
								
					}
				?>
                <h2><?= replaceSpeechMarks($name); ?></h2>
                <h3><a href='javascript:history.back();'>Back&nbsp;&laquo;</a></h3>
                
                <p>
                <?php	if ( $get_id > 0 ) { ?>
                <?php 	if (strtotime($dob)>-2208988800) { ?>
                			<div>Born: <?= date('l jS \of F Y', strtotime($dob) ); ?></div> 
                <?php 	} ?>
                <?php 	if (strtotime($dob)<=-2208988800 && $dob != null) { ?>
                			<div>Born: Before 1900</div>
                <?php 	} ?>
                <?php 	if ($dob == null) { ?>
                			<div>Born: Unknown</div> 
                <?php 	} ?>
                
				<?php 	if ($dod != null) { ?>
 	               			<div>Died: <?= date('l jS \of F Y', strtotime($dod) ); ?></div>
              	<?php 	} else { ?>
                			<div>Died: Unknown or alive 'n' kicking</div>
                <?php 	} ?>
                <?php } ?>
				<br>
				<?= nl2br("<b>Content coming soon...</b> Lorem ipsum dolor sit amet, dico ferri fabulas usu cu, quo nullam pericula mediocrem in, vis ut albucius molestiae deterruisset. Te mei dico offendit definitionem. Ne pri euismod saperet voluptaria, mel eu partiendo urbanitas, iusto postea aperiam eum no. Cum debet audiam discere cu, ne pro agam corpora, ad qui ubique noster intellegat. Eam sint inani intellegebat ei, brute graeci periculis eu mea. Tractatos efficiendi ad pro, vis suavitate dignissim no.

Eos eu adipisci urbanitas, aeque oporteat comprehensam ius eu. Assum legere nonumes vis id, his et modo porro aeque. Duo ut facete assentior, ad eos summo putant senserit. Qui offendit accusamus id, mundi ceteros mel et, movet eirmod mei eu.

Vix aperiam vituperata neglegentur et, in vim tale facer. Ad adhuc eirmod integre sit, falli tempor percipit sit ut. Cum in vivendum convenire rationibus, ex vix feugiat fierent. Dolore consul invenire an duo. Mea in saepe aperiri prompta, ne latine rationibus cum, dicam invidunt honestatis his an.") ?>

				</p>
            </header>
            <footer></footer>
        </article>
    </section>
    </div>
    <?php
		include("components/rightBanners.php");
	?>
</div>
<?php
	include("components/footer.php");
?>
</body>
</html>
